<?php

namespace Summer\location\Models;

use \Backend\Models\ExportModel;

class TownExport extends ExportModel {

    public function exportData($columns, $sessionKey = null)
    {
        $town = TownModel::all();
        $town->each(function($town) use ($columns) {
            $town->addVisible($columns);
        });

        return $town->toArray();
        
    }

}
